#include "stdafx.h"
#include "MainFrame.h"
#include "App.h"

MainFrame::MainFrame()
{
	mAllLookFeel = new AllLookFeel;
	mMainMenu = new MainMenu;
	mMainStatusBar = new MainStatusBar;

	mLookFeelEditor= new LookFeelEditor;
	mLayoutEditor = new LayoutEditor;

	mColorDialog = new ColorDialog;

	Layout();

	App::Instance()->SetEditorMode(EM_Lookfeel);
}

MainFrame::~MainFrame()
{
	delete mColorDialog;

	delete mLayoutEditor;
	delete mLookFeelEditor;

	delete mMainMenu;
	delete mMainStatusBar;
	delete mAllLookFeel;
}

void MainFrame::Layout()
{
	mMainMenu->Layout();
	mMainStatusBar->Layout();

	mLookFeelEditor->Layout();
	mLayoutEditor->Layout();
}


